package com.hk.model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: KangWang
 * Date: 2021/5/18 17:01
 * State：产品展示
 */
public class Product implements Serializable {

    private Integer id;
    private String img;//产品图片（路径）
    private String name;//产品名称
    private String detail;//产品详情
    private BigDecimal marketPrice;//产品市场价
    private BigDecimal platformPrice;//产品平台价
    private Integer tMenuId;//产品所属子级菜单
    //    不与数据库对应
    private String tMenuName;//所属子级菜单

    private Integer menuId;//产品所属一级菜单
    //    不与数据库对应
    private String menuName;//所属一级菜单

    private String gmtCreate;
    private String gmtModified;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getPlatformPrice() {
        return platformPrice;
    }

    public void setPlatformPrice(BigDecimal platformPrice) {
        this.platformPrice = platformPrice;
    }

    public Integer gettMenuId() {
        return tMenuId;
    }

    public void settMenuId(Integer tMenuId) {
        this.tMenuId = tMenuId;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String gettMenuName() {
        return tMenuName;
    }

    public void settMenuName(String tMenuName) {
        this.tMenuName = tMenuName;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(String gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Product(Integer id, String img, String name, String detail, BigDecimal marketPrice, BigDecimal platformPrice, Integer tMenuId, Integer menuId, String gmtCreate, String gmtModified) {
        this.id = id;
        this.img = img;
        this.name = name;
        this.detail = detail;
        this.marketPrice = marketPrice;
        this.platformPrice = platformPrice;
        this.tMenuId = tMenuId;
        this.menuId = menuId;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    public Product() {

    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", img='" + img + '\'' +
                ", name='" + name + '\'' +
                ", detail='" + detail + '\'' +
                ", marketPrice=" + marketPrice +
                ", platformPrice=" + platformPrice +
                ", tMenuId=" + tMenuId +
                ", tMenuName='" + tMenuName + '\'' +
                ", menuId=" + menuId +
                ", menuName='" + menuName + '\'' +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", gmtModified='" + gmtModified + '\'' +
                '}';
    }
}
